<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="html-el" uri="http://struts.apache.org/tags-html-el" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>修改宿管人员</title>
<script type="text/javascript" src="../../js/jquery-1.3.1.js"></script>
<script type="text/javascript" src="../../js/Ajax.js"></script>
</head>
<body>
<form id="dormSupervisorDTO" name="dormSupervisorDTO" method="post" action="updateSupervisor.do">
  <input type="hidden" name="method" value="update"/>
   <input type="hidden" name="id" value="${supervisor.id }"/>
  <label>密码
  <input type="password" name="oldPassword" id="oldPassword" />
  </label>
  <label>请再输一遍密码
  <input type="password" name="password" id="password" />
  </label>
  <label>电子邮箱
  <input type="text" name="email" id="email" value="${supervisor.account.email }"/>
  </label>
  <label>电话
  <input type="text" name="telephone" id="telephone" value="${supervisor.account.telephone }"/>
  </label>
 
  <label>选择所在校区
  	<select id="campus" name="campus">
  		<option>校区</option>
  		<c:forEach var="item" items="${campus.list}">
  			<option value="${item.id }" >${item.name }</option>
  		</c:forEach>
  	</select>
  </label>
  <label>选择楼栋
  	<select id="building" name="building">
  		 <option value="${supervisor.building.id }">${supervisor.building.name }</option>		
  	</select>
  </label> 
  <input type="submit" value="提交"/>
  </form>

</body>
</html>